package com.jielihaofeng.level2;

/**
 * @author Johnnie Wind
 * @description RuntimeException 异常
 * @date 2021/11/30 14:11
 */
public class RuntimeExceptionTest {

    public static void main(String[] args) {
        throwRuntime1();
        throwRuntime2();
    }

    public static void throwRuntime1(){
        throw new RuntimeException("throwRuntime1：我是RuntimeException异常1");
    }

    public static void throwRuntime2() throws RuntimeException{
        throw new RuntimeException("throwRuntime2：我是RuntimeException异常2");
    }

}
